﻿using _17bang.Pages;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace SourceStack.Pages
{
    public class IndexModel : PageModel
    {
        public void OnGet()
        {
            ViewData["HasLogOn"] = Request.Cookies[Keys.UserId];



        }
        public IActionResult OnPost()
        {
            return Redirect(Request.Headers["referer"]);
            //return RedirectToPage("/Index");
        }
    }
}
